package com.hefei.garden.controller;

import com.hefei.garden.service.TestService;
import com.hefei.garden.service.feign.BigEastGateFeignService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author: devil
 * @Date: 2022/7/3 19
 * @Description:
 */
@Controller
@RequestMapping("test")
public class TestController {

    @Autowired
    private TestService testService;

    @Autowired
    private BigEastGateFeignService bigEastGateFeignService;

    @RequestMapping(value = "/getTestInfo", method = RequestMethod.GET)
    @ResponseBody
    public String getTestInfo(@Param("type") String type) {
        return testService.getTestInfo(type);
    }

    @RequestMapping(value = "/getBigEast", method = RequestMethod.GET)
    @ResponseBody
    public String getBigEast() {
        return bigEastGateFeignService.sayHi();
    }


}
